package com.dykj.fireFighting.server.socialUnit.xfxg.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dykj.fireFighting.api.socialUnit.xfxg.entity.PatrolPlan;
import com.dykj.fireFighting.api.socialUnit.xfxg.service.IPatrolPlanService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.xfxg.mapper.PatrolPlanMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 消防巡更-巡更计划
 *
 * @Author LIJIANJIE
 * @Date  2021-06-21 09:51:58
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class PatrolPlanServiceImpl extends BaseServiceImpl<PatrolPlanMapper, PatrolPlan> implements IPatrolPlanService {


    @Override
    public List<PatrolPlan> queryList(String toString) {
        QueryWrapper<PatrolPlan> wrapper = new QueryWrapper<>();
        wrapper.eq("unit_id", toString);
        return this.baseMapper.selectList(wrapper);
    }
}
